package lab03.test06;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.RandomAccessFile;

/**
 * Created by 14394 on 2017/11/17.
 */
public class Test {
    public static void main(String[] args) {
        RandomAccessFile randomAccessFile=null;
        String path="F:\\dev\\test.txt";
        try {
            randomAccessFile=new RandomAccessFile(path,"r");
            String line=null;
            while ((line=randomAccessFile.readLine())!=null){

            }
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
